<template>
    <div>
        <h1>H5工具</h1>
        <div>常用的H5工具</div>

        <h3>rem-手机适配下开发</h3>
        <div>在开发中全部使用rem进行开发，设计尺寸默认为750 <a :href="conf.href" target="_blank">点击查看在线示例</a></div>
        <dCode :code="conf.str" />
    </div>
</template>
<script setup lang="ts">
import { onMounted, reactive } from 'vue'

const conf = reactive({
    str: '',
    href:'/html/H5Util.html',
    getStr:async ()=>{
        conf.str = await FileUtil.getFile(conf.href)
    }
})
onMounted(()=>{
    conf.getStr()
})
</script>
<style lang="less" scoped></style>
